<!--
################################
###ZONE AGENDA
################################
-->
<DIV  align='center'>
  <DIV id='admin_top'>
  	<B><DIV id='titreZoneEvent'>Editer un événement</DIV></B>
  </DIV>
  <DIV id='admin_content_back'>
    <DIV id='admin_content'>
  		<FORM name="formu" method="POST" action="javascript:validEvent();">
  			<TABLE WIDTH="100%">
  			<TR ID="trLieuEvent">
  				<TD WIDTH="200px" valign="top"><B>Lieu :</B></TD>
  				<TD><SELECT ID="idLieux" NAME="lieu">					
  				</SELECT></TD>
  			</TR>
  			<TR ID="trTypeEvent" >
  				<TD WIDTH="200px" valign="top"><B>Type :</B></TD>
  				<TD><SELECT ID="idTypes" NAME="type">					
  				</SELECT></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Titre :</B></TD>
  				<TD><INPUT ID="idTitreEvent" TYPE="text" NAME="titre" SIZE="40" "></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Date (AAAA-MM-JJ) :</B></TD>
  				<!--<TD><INPUT ID="idDateEvent" TYPE="text" NAME="date" SIZE="40">&nbsp;<input type='button' value='Choisir' onClick="window.open('mycalendar.php?form=formu&elem=date','Calendrier','width=200,height=320')"></TD>-->
  				<TD><INPUT ID="idDateEvent" TYPE="text" NAME="date" SIZE="40"></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Heure (HH:MM) :</B></TD>
  				<TD><INPUT ID="idHeureEvent" NAME="heure" COLS="60"></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Description :</B></TD>
  				<TD><TEXTAREA ID="idTexteEvent" NAME="desc" COLS="60"></TEXTAREA></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Tarif :</B></TD>
  				<TD><INPUT ID="idTarifEvent" NAME="tarif" COLS="60"></TD>
  			</TR>
  			<TR><TD colspan=2 align="center">
  			<BR><INPUT TYPE="Submit" Value="Valider"><BR><BR>
  			</TD></TR>
  			</TABLE>
  		</FORM>
      <DIV ID="zoneIllustration" algin='left'></DIV>
    </DIV>
  </DIV>
  <DIV id='admin_content_end'></DIV>
</DIV>


<!--
################################
###ZONE ILLUSTRATION
################################
-->
<BR />
<DIV ID="divIllustration" align="center">
</DIV>

<!--
################################
###ZONE TYPE EVENEMENT
################################
-->
<DIV ID="divType" align='center'>
<BR/>
  <DIV id='admin_top'>
		<B>Ajouter un type d'événement</B>
	</DIV>
	<DIV id='admin_content_back'>
	 <DIV id='admin_content'>
			<FORM method="POST" action="javascript:addTypeToBase();">
				<TABLE WIDTH="100%">
				<TR>
					<TD WIDTH="200px" valign="top"><B>Type d'événement :</B></TD>
					<TD><INPUT ID="idNewType" TYPE="text" NAME="type" SIZE="40"></TD>
				</TR>
				<TR><TD colspan=2 align="center">
				<BR><INPUT TYPE="Submit" Value="Ajouter"><BR><BR>
				</TD></TR>
				</TABLE>
			</FORM>
    </DIV>
  </DIV>
	<DIV id='admin_content_end'></DIV>
</DIV>
<!--
################################
###ZONE LIEU
################################
-->
<DIV ID="divLieu" align='center'>
<BR>
  <DIV id='admin_top'>
		<B>Ajouter un lieu</B>
	</DIV>
	<DIV id='admin_content_back'>
	 <DIV id='admin_content'>
			<FORM method="POST" action="javascript:addLieuToBase();">
				<TABLE WIDTH="100%">
				<TR>
					<TD WIDTH="200px" valign="top"><B>Nom du lieu :</B></TD>
					<TD><INPUT ID="idNomLieu" TYPE="text" NAME="nom" SIZE="40"></TD>
				</TR>
				<TR>
					<TD WIDTH="200px" valign="top"><B>Adresse :</B></TD>
					<TD><INPUT ID="idAdresse1Lieu" TYPE="text" NAME="adrss_1" SIZE="40"></TD>
				</TR>
				<TR>
					<TD WIDTH="200px" valign="top"><B></B></TD>
					<TD><INPUT ID="idAdresse2Lieu" TYPE="text" NAME="adrss_2" SIZE="40"></TD>
				</TR>
				<TR>
					<TD WIDTH="200px" valign="top"><B>C.P. :</B></TD>
					<TD><INPUT ID="idCodePostalLieu" TYPE="text" NAME="cp" SIZE="5"></TD>
				</TR>
				<TR>
					<TD WIDTH="200px" valign="top"><B>Ville :</B></TD>
					<TD><INPUT ID="idVilleLieu" TYPE="text" NAME="ville" SIZE="40"></TD>
				</TR>
				<TR><TD colspan=2 align="center">
				<BR><INPUT TYPE="Submit" Value="Ajouter"><BR><BR>
				</TD></TR>
				</TABLE>
			</FORM>
    </DIV>
  </DIV>
  <DIV id='admin_content_end'></DIV>
</DIV>

<TABLE WIDTH="100%">
	<TD align="center"><A HREF="index.php?page=agenda" class='blanc'>Revenir à la liste des événements</A></TD>
</TABLE>

<script src='templates/js/update_illustration.js'></script>
<script src='include/frameworks/ui.datepicker.js'></script>
<script src='include/frameworks/jquery.jcarousel.pack.js'></script>
<script src='include/frameworks/jquery.autocomplete.js'></script>
<style type="text/css" media="all">@import "css/ui.datepicker.css";</style>
<style type="text/css" media="all">@import "css/jquery.jcarousel.css";</style>
<style type="text/css" media="all">@import "css/jquery.autocomplete.css";</style>
<style type="text/css" media="all">@import "css/skins_jcarousel/tango/skin.css";</style>
<?
  
	if(!session_is_registered('login')) {
		 echo "<p>Vous devez être enregistré pour accèder à cette page !</P>";
	 } else {	 
		 
  	$id_evt = -1;
  	if (isset($_GET['id_evt'])){
  	   $id_evt = $_GET['id_evt'];
    }
    
    echo "\n<script language='Javascript'>\n";
    echo "manageLayout($id_evt);\n";
    echo "getEvent($id_evt);\n";
    if ($id_evt == -1){
      echo "getTypes();\n";
      echo "getLieux();\n";
    }
    echo "</script>";
	
  }
?>
